package com.gkj.blog.business.service.impl;

import com.github.pagehelper.PageHelper;
import com.gkj.blog.business.service.ArticleArchivesService;
import com.gkj.blog.persistence.mapper.ArticleArchivesMapper;
import com.gkj.blog.persistence.po.ArticleArchives;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ArticleArchivesServiceImpl implements ArticleArchivesService{

    @Autowired
    ArticleArchivesMapper articleArchivesMapper;

    @Override
    public List<ArticleArchives> listArticleArchives(Integer size) {
        PageHelper.startPage(1,size);
        return articleArchivesMapper.listArchives();
    }
}
